package xyj.sparrow.common.netty.bean;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

/**
 * @ClassName Request
 * @Description TODO
 * @Author Jim
 * @Date 2021/1/15 20:53
 * @Version 1.0.0
 **/
@EqualsAndHashCode(callSuper = true)
@Data
@ToString(callSuper = true)
public class Request extends BaseMsg {
    private String className;
    private String aliasName;
    private String methodName;
    private Object[] params;
    private Class[] paramTypes;
    private String requestType = Request.RequestType.TRANSFER;

    public static final class RequestType {
        /**
         * 调用
         **/
        public static final String TRANSFER = "TRANSFER";
        /**
         * 注册
         **/
        public static final String REGISTER = "REGISTER";
    }
}
